package com.liqy.huoshan.model.home;

import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

/**
 * Created by liqy on 2017/12/28.
 */

public class HomePageAdapter extends FragmentPagerAdapter {

    public HomePageAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public android.support.v4.app.Fragment getItem(int position) {
        if (position == 0) {
            return HomeLiveFragment.newInstance("", "");
        } else {
            return VideoFragment.newInstance("", "");
        }
    }

    @Override
    public int getCount() {
        return 2;
    }


}
